|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Script
public class Script
The Script class represents the <script> VXML element. A
script block contains ECMAScript that is executed when the block is
encountered by the VXML interpreter.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Script()
Creates a new Script object. |
|
| Method Summary | |
|---|---|
void |
appendText(java.lang.String text)
Appends the given script text to the current script text of this script object. |
void |
clearText()
Clears the text of the current script. |
java.lang.String |
getText()
Returns the current ECMAScript text of this script object. |
void |
setText(java.lang.String text)
Replaces the current script text with that given. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this script to the supplied set. |
protected void |
writeText(org.xml.sax.ContentHandler outputHandler)
Write the text of this script to the supplied content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Script()
| Method Detail |
|---|
public java.lang.String getText()
public void setText(java.lang.String text)
throws java.lang.NullPointerException
text - The new script text.
java.lang.NullPointerException - If the supplied text is null.
public void appendText(java.lang.String text)
throws java.lang.NullPointerException
text - Script text to append.
java.lang.NullPointerException - If the supplied text is null.public void clearText()
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeText(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of the script text fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||